package com.scsj.supermarket.base;

import com.scsj.supermarket.bean.BaseBean;
import com.scsj.supermarket.bean.IndexBean;
import com.scsj.supermarket.bean.ShopCarBean;

import dkmvp.net.ResponseCallback;
import okhttp3.RequestBody;
import rx.Subscription;

/**
 * 购物车
 */

public class ShopCarBase {

    public interface IView {

        void showSuccessMsg(String s);

        void showErrorMsg(String s);

        void setAllData(ShopCarBean shopCarBean);

        void setShopCarDel(BaseBean baseBean);

        void setShopCarSendFare(BaseBean baseBean);
    }

    public interface IPresenter {

        void deliverAllList( );

        void deliverShopCarDel(RequestBody requestBody);

        void deliverShopCarSendFare(RequestBody requestBody);
    }

    public interface IModel {

        Subscription getAllData( ResponseCallback<ShopCarBean> callback);

        Subscription getShopCarDelData(RequestBody requestBody, ResponseCallback<BaseBean> callback);

        Subscription getShopCarSendFareData(RequestBody requestBody, ResponseCallback<BaseBean> callback);

    }
}
